﻿//var url_path = "http://192.168.1.49:8082/mobile/" //服务器地址。
var url_path = "." //本地测试用
var my_ClientType = "MobileWeb"; //当前客户端类型"web","android","iphone"
var my_Version = "20151116"; //当前版本

var USER_ID = "";
var UserCode = "";
var UserName = "";

function today() {
//    var today = "";
//    var myDate = new Date();
//    today = myDate.getFullYear();    //获取完整的年份(4位,1970-????)
//    today += '-' + (myDate.getMonth() + 1);      //获取当前月份(0-11,0代表1月)
//    today += '-' + myDate.getDate();
    //    return today;
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = year + seperator1 + month + seperator1 + strDate
    return currentdate;
}
function showConfirm(message) {
    navigator.notification.confirm(
               message,  // message
               onConfirm,            // callback function
               '消息',               // title
               'Yes,No'              // confirm 選項，用逗號隔開
                );
}